<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes(); ?>>

<head profile="http://gmpg.org/xfn/11">
<meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />


<title><?php if(is_front_page()) { echo SITENAME; } else { wp_title(''); } ?></title>

<!-- Meta Images -->
<?php if(pagelines('favicon')):?><link rel="shortcut icon" href="<?php echo pagelines('favicon');?>" type="image/x-icon" /><?php endif;?>
<?php if(pagelines('touchicon')):?><link rel="apple-touch-icon" href="<?php echo pagelines('touchicon');?>" /><?php endif;?>

<!-- Stylesheets -->
<link rel="stylesheet" href="<?php echo CSS_FOLDER.'/960.css';?>" type="text/css" media="screen" />
<link rel="stylesheet" href="<?php echo CSS_FOLDER.'/reset.css';?>" type="text/css" media="screen" />
<link rel="stylesheet" href="<?php echo CSS_FOLDER.'/trans.css';?>" type="text/css" media="screen" />
<link rel="stylesheet" href="<?php echo CSS_FOLDER.'/wp.css';?>" type="text/css" media="screen" />
<link rel="stylesheet" href="<?php echo ROOT.'/style.css';?>" type="text/css" media="screen" />




<!-- IE -->

<!--[if IE 6]>
	<link rel="stylesheet" href="<?php echo CSS_FOLDER.'/ie6.css';?>" type="text/css" media="screen" />
<![endif]-->
<!--[if lt IE 8]>
	<script src="http://ie7-js.googlecode.com/svn/version/2.0(beta3)/IE8.js" type="text/javascript"></script>
<![endif]-->
<!--[if IE]>
	<script  type="text/javascript"  src="<?php echo JS_FOLDER; ?>/belatedpng.js"></script>
	<script>
	  DD_belatedPNG.fix('.pngbg, .welcometext, .icons a, #site, .fcontent, .featurelink, .contentshadow, .plimage, .shadowbottom, .shadowtop, .post-footer .left span, #welcome');
	 </script>	
<![endif]-->

<!-- Wordpress Stuff -->
<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
<?php if ( is_singular() ) wp_enqueue_script( 'comment-reply' ); // FOR THREADED COMMENTS ?>
<?php wp_head(); ?>

<?php include (TEMPLATEPATH.'/_customcss.php'); ?>

<?php if (pagelines('headerscripts')) echo pagelines('headerscripts');?>
</head>
<body <?php body_class(); ?>>
	<div id="site">
		<div id="wrapper">
			<div id="cred">
				<div class="p fix" style="padding: 0px ">
					<a class="plimage" href="<?php if(pagelines('credlink')):?><?php echo pagelines('credlink');?><?php else:?>http://www.pagelines.com<?php endif;?>">
						<?php if(pagelines('credtext')):?><?php echo pagelines('credtext'); ?>
						<?php else:?>professional wordpress themes
						<?php endif;?>
					</a>
				</div>
			</div>
			
		<div id="pagewrap" class=""><div id="pagewrap2" class="">
				<div id="hcontain" class="container_12 fix">
					<div id="header" class="fix">
						<div class="headline">
							<?php if(pagelines('custom_header')):?>
								<a class="home" href="<?php echo get_settings('home'); ?>/" title="<?php bloginfo('name');?>"><img src="<?php echo pagelines('custom_header');?>" alt="<?php bloginfo('name');?>" /></a>
							<?php else:?>
							<h1 class="site-title"><a class="home" href="<?php echo get_settings('home'); ?>/" title="Home"><?php bloginfo('name');?></a></h1>
							<h6 class="site-description"><?php bloginfo('description');?></h6>
							<?php endif;?>
						</div>
							<div class="icons">
								
								<?php if(pagelines('rsslink')):?>
								<a href="<?php echo RSSURL;?>" class="rsslink"></a>
								<?php endif;?>
								
			
								
							</div>
					</div>
				</div>
				<div class="contentshadow fix">
					<div class="contentshadowfade">
						<div class="container fix">
							<div id="nav" class="fix">
								<ul class="clearfix"> 	
									<li class="page_item "><a class="home" href="<?php echo get_settings('home'); ?>/" title="Home">Home</a></li>
									<?php 
										$frontpage_id = get_option('page_on_front');
										wp_list_pages('sort_column=menu_order&exclude='.$frontpage_id.'&depth=1&title_li=');?>
								</ul>
							</div><!-- /nav -->
							<div class="clear"></div>
	